﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListDSDKLaiXe.ascx.cs"
    Inherits="Admin_ucControl_ucListDSDKLaiXe" %>
<div id="tabledata" class="section">
    <h2 class="ico_mug">
        DANH SÁCH NGƯỜI ĐĂNG KÝ LÁI XE</h2>
    <br />
    <table style="width: 100%;" class="yui">
        <tr>
            <td>
                Tên khách hàng:
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
            <td>
                Số điện thoại
                <asp:TextBox ID="sdt" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btnSearch_1" OnClick="btnSearch_1_Onclick" runat="server" Text="Lọc dữ liệu" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="grdDSDKLaiXe" runat="server" CssClass="yui" AutoGenerateColumns="False"
        EmptyDataText="Không có đăng ký nào" Width="100%" CellPadding="4" BackColor="White"
        BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" AllowPaging="True"
        PageSize="15" OnPageIndexChanging="grdDSDKLaiXe_PageIndexChanging" OnRowDataBound="grdDSDKLaiXe_RowDataBound">
        <RowStyle BackColor="White" ForeColor="#330099" />
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" HeaderStyle-Width="50px" />
            <asp:HyperLinkField DataNavigateUrlFields="FulName" DataTextField="FulName" HeaderText="Họ và Tên"
                HeaderStyle-Width="160px">
                <ItemStyle ForeColor="Blue" />
            </asp:HyperLinkField>
            <asp:TemplateField HeaderText="Địa chỉ" HeaderStyle-Width="200px">
                <ItemTemplate>
                    <asp:Label ID="lbAdd" runat="server" Text='<%# Eval("Address") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Số Điện Thoại" HeaderStyle-Width="120px">
                <ItemTemplate>
                    <asp:Label ID="lbPhone" runat="server" Text='<%# Eval("PhoneMobile") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ngày đăng ký" HeaderStyle-Width="80px">
                <ItemTemplate>
                    <asp:Label ID="lbNgay" runat="server" Text='<%# Convert.ToDateTime(Eval("NgayDK")).ToString("dd/MM/yyyy") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Thời gian" HeaderStyle-Width="130px">
                <ItemTemplate>
                    <asp:Label ID="lbTime" runat="server" Text='<%# Eval("Time") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Xe đăng ký" HeaderStyle-Width="120px">
                <ItemTemplate>
                    <asp:Label ID="lbXe" runat="server" Text='<%# Eval("LoaiXeMuonLaiThu") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Bằng lái xe" HeaderStyle-Width="100px">
                <ItemTemplate>
                    <asp:Label ID="lbBangLaiXe" runat="server" Text='<%# Eval("SoBangLaiXeOto") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle CssClass="clsGrdHeader" />
        <RowStyle CssClass="clsGrdRow" />
        <AlternatingRowStyle CssClass="clsGrdAlternateRow" />
        <PagerStyle CssClass="clsPage" />
    </asp:GridView>
    <br />
</div>
